#ifndef QCLICKABLESTACK_H
#define QCLICKABLESTACK_H

#include <QStackedWidget>
#include <iostream>

 /* Class QClickableStack extends QStackedWidget
  * to add the ability of the user to click on the stack page
  * and for a signal to be emitted
  */
class QClickableStack : public QStackedWidget
{
    Q_OBJECT

public:
    QClickableStack(QWidget *parent = 0);
    ~QClickableStack();

protected:
    void mousePressEvent(QMouseEvent *event);
    void mouseDoubleClickEvent(QMouseEvent *event);
    //void mouseMoveEvent(QMouseEvent *event);

signals:
    void clicked();
    void doubleClicked();

};

#endif // QCLICKABLESTACK_H
